<?php
namespace app\crontab\controller;

use app\common\model\BookModel;
use app\common\service\swooleJobs\BookJobs;
use think\Controller;

class Book extends Controller
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        // 获取需要检测的数据列表
        $Book = new BookModel();
        $list = $Book->get_new_to_update();

        foreach ( $list as $key => $value ){
            BookJobs::QuShuSelectBookJobs( $key , $value );
        }
    }
}
